<?php
date_default_timezone_set('America/Santiago');
$_seccion = parse_ini_file(dirname(__FILE__).'/seccion/seccion.ini',true);
	
	if(!isset($_GET['id'])||empty($_GET['id']))
		$path = "inicio";
	else
		$path = filter_var($_GET['id'], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
		if(file_exists("seccion/$path.php")){
			require 'template/header.php';
			
			/*if(isset($_GET['img'])){
				require 'seccion/productos/'.$_GET['img'].'.php';
			}
			else*/
				require "seccion/$path.php";
			require 'template/footer.php';
		}
		else
			echo "Error 404: documento no encontrado";
?>